package com.zmzncs.lmtc.module.promotion.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zmzncs.lmtc.module.promotion.dao.MonthRuleFeeScaleMapper;
import com.zmzncs.lmtc.module.promotion.dao.MonthRuleMapper;
import com.zmzncs.lmtc.module.promotion.dao.MonthRuleParkMapper;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule.MonthRule;
import com.zmzncs.lmtc.module.promotion.pojo.month_rule.MonthRuleDTO;
import com.zmzncs.lmtc.module.promotion.service.MonthRuleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 任建波
 * @since 2020-08-12
 */
@Service
public class MonthRuleServiceImpl extends ServiceImpl<MonthRuleMapper, MonthRule> implements MonthRuleService {

    @Autowired
    MonthRuleMapper monthRuleMapper;
    @Autowired
    MonthRuleParkMapper monthRuleParkMapper;
    @Autowired
    MonthRuleFeeScaleMapper monthRuleFeeScaleMapper;

    /**
     * 获取月租规则
     */
    @Override
    public IPage<MonthRuleDTO> getMonthRuleParkList(Page page, String keyword) {
        IPage<MonthRuleDTO> monthRuleParkPage = monthRuleMapper.getMonthRuleParkList(page, keyword);
        return monthRuleParkPage;
    }

}
